﻿-- Creating foreign key on [PreOrderID] in table 'AppointmentDetails'
-- Creating foreign key on [PreOrderID] in table 'AppointmentDetails'
-- Creating foreign key on [PreOrderID] in table 'AppointmentDetails'
-- Creating foreign key on [PreOrderID] in table 'AppointmentDetails'
-- Creating foreign key on [PreOrderID] in table 'AppointmentDetails'
ALTER TABLE [dbo].[AppointmentDetails]
ADD CONSTRAINT [FK_PreOrderAppointmentDetail]
    FOREIGN KEY ([PreOrderID])
    REFERENCES [dbo].[PreOrders]
        ([PreOrderID])
    ON DELETE NO ACTION ON UPDATE NO ACTION;














